#!/bin/bash

#制作安装包脚本
workdir=$(cd ${0%/*}/; pwd)
apptmpdir=${workdir}/tmp

if [ -d ${apptmpdir} ]; then
    rm -rf ${apptmpdir}
fi
mkdir -p ${apptmpdir}

rm -rf data.tar.gz

tar -zcvf data.tar.gz ./mediaserz/

mv data.tar.gz ${apptmpdir}/
cp ./base ${apptmpdir}/installzlm
cd ${apptmpdir}
cat data.tar.gz >> installzlm
rm -rf data.tar.gz
chmod +x installzlm
